home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / sokoban-.tar / sokoban-src.tar / sokoban / sokoban.h < prev   
Text File  |  1992-05-15  |  3KB  |  105 lines

  1. /***********************************************************************
  2.    You may wish to alter the following directory paths
  3. ***********************************************************************/
  4. /**/
  5. /* SCREENPATH: the name of the directioy where the screen file are held */
  6. /**/
  7. #define SCREENPATH     "/usr/games/sokob"
  8.  
  9. /**/
  10. /* SAVEPATH: the name of the path where save files are held */
  11. /*           Attention: Be sure that there are no other files with */
  12. /*                      the name <username>.sav                    */
  13. /**/
  14. #define SAVEPATH    "/usr/games/sokob"
  15.  
  16. /**/
  17. /* LOCKPATH: temporary file which is created to ensure that no users */
  18. /*           work with the scorefile at the same time                */
  19. /**/
  20. #define LOCKFILE    "/usr/tmp/sok.tmp"
  21.  
  22. /**/
  23. /* SCOREFILE: the full pathname of the score file */
  24. /**/
  25. #define SCOREFILE    "/usr/games/sokob/highscore"
  26.  
  27. /**/
  28. /* MAXUSERNAME: defines the maximum length of a system's user name */
  29. /**/
  30. #define MAXUSERNAME    10
  31.  
  32. /**/
  33. /* MAXSCOREENTRIES: defines the maximum numner of entries in the scoretable */
  34. /**/
  35. #define MAXSCOREENTRIES    50
  36.  
  37. /**/
  38. /* SUPERUSER: defines the name of the game superuser */
  39. /**/
  40. #define SUPERUSER "root"
  41.  
  42. /**/
  43. /* PASSWORD: defines the password necessary for creating a new score file */
  44. /**/
  45. #define PASSWORD "listen"
  46.  
  47. /**/
  48. /* OBJECT: this typedef is used for internal and external representation */
  49. /*         of objects                                                    */
  50. /**/
  51. typedef struct {
  52.    char obj_intern;    /* internal representation of the object */
  53.    char obj_display1;    /* first  display char for the object         */
  54.    char obj_display2;    /* second display char for the object         */
  55.    short invers;    /* if set to 1 the object will be shown invers */
  56. } OBJECT;
  57.  
  58. /**/
  59. /* You can now alter the definitions below.
  60. /* Attention: Do not alter `obj_intern'. This would cause an error */
  61. /*            when reading the screenfiles                         */
  62. /**/
  63. static OBJECT 
  64.    player =      { '@', '*', '*', 0 },
  65.    playerstore = { '+', '*', '*', 1 },
  66.    store =      { '.', '.', '.', 0 },
  67.    packet =      { '$', '[', ']', 0 },
  68.    save =      { '*', '<', '>', 1 },
  69.    ground =      { ' ', ' ', ' ', 0 },
  70.    wall =      { '#', '#', '#', 1 };
  71.  
  72. /*************************************************************************
  73. ********************** DO NOT CHANGE BELOW THIS LINE *********************
  74. *************************************************************************/
  75. #define MAXROW        20
  76. #define MAXCOL        40
  77.  
  78. typedef struct {
  79.    short x, y;
  80. } POS;
  81.  
  82. #define E_FOPENSCREEN    1
  83. #define E_PLAYPOS1    2
  84. #define E_ILLCHAR    3
  85. #define E_PLAYPOS2    4
  86. #define E_TOMUCHROWS    5
  87. #define E_TOMUCHCOLS    6
  88. #define E_ENDGAME    7
  89. #define E_NOUSER    9
  90. #define E_FOPENSAVE    10
  91. #define E_WRITESAVE    11
  92. #define E_STATSAVE    12
  93. #define E_READSAVE    13
  94. #define E_ALTERSAVE    14
  95. #define E_SAVED        15
  96. #define E_TOMUCHSE    16
  97. #define E_FOPENSCORE    17
  98. #define E_READSCORE    18
  99. #define E_WRITESCORE    19
  100. #define E_USAGE        20
  101. #define E_ILLPASSWORD    21
  102. #define E_LEVELTOOHIGH    22
  103. #define E_NOSUPER    23
  104. #define E_NOSAVEFILE    24
  105.